//
//  DZRedomNumCell.m
#import "DZRedomNumCell.h"
@interface DZRedomNumCell()
@property (nonatomic,strong) UILabel *redomNumLab;
@end
@implementation DZRedomNumCell
-(instancetype)initWithFrame:(CGRect)frame{
    if (self == [super initWithFrame:frame]) {
        self.backgroundColor = DZHex(@"#B5D4EE");
        self.layer.cornerRadius = DZRatio(6);
        self.clipsToBounds = YES;
        [self initView];
    }
    return self;
}
- (void)initView{
    self.redomNumLab = [[UILabel alloc] init];
    self.redomNumLab.font = [UIFont systemFontOfSize:DZRatio(40) weight:UIFontWeightRegular];
    self.redomNumLab.textColor = DZHex(@"#2D353B");
    self.redomNumLab.textAlignment = NSTextAlignmentCenter;
    [self addSubview:self.redomNumLab];
    [self.redomNumLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(@(DZRatio(0)));
        make.right.equalTo(@(DZRatio(0)));
        make.top.equalTo(@(DZRatio(0)));
        make.bottom.equalTo(@(DZRatio(0)));
    }];
}
-(void)setRedomNum:(NSString *)redomNum{
    _redomNum = redomNum;
    self.redomNumLab.text = _redomNum;
}
@end
